﻿@page
@{ Layout = "_Layout"; }

<el-card class="box-card">
    <el-form :inline="true" :size="euiSize">
        <el-form-item label="标题">
            <el-input v-model="form.title" placeholder="标题" clearable></el-input>
        </el-form-item>
        <el-form-item>
            <el-button :size="euiSize" type="primary" v-on:click="btnSearchClick" icon="el-icon-search">查 询</el-button>
            <el-button :size="euiSize" plain type="primary" style="margin-left: 0px;" icon="el-icon-plus" v-on:click="btnEditClick(0)">
                新 增
            </el-button>
        </el-form-item>
    </el-form>
   
<el-table
:data="list" :size="euiSize" style="width: 100%" :height="($(window).height() - 155)">
  <el-table-column
    prop="title"
    label="标题">
  </el-table-column>
        <el-table-column width="130" label="创建人">
    <template slot-scope="scope">
      <el-button-group>
        <el-link :underline="false" type="primary" v-on:click="btnAdminViewClick(scope.row.creatorId)">{{scope.row.creatorName}}</el-link>
      </el-button-group>
    </template>
  </el-table-column>
  <el-table-column
    width="150"
    prop="createdDate"
    label="创建时间">
  </el-table-column>
  <el-table-column label="操作" width="150">
    <template slot-scope="scope">
      <el-button-group>
        <el-button
          :size="euiSize" v-on:click="btnEditClick(scope.row.id)">编辑</el-button>
        <el-button :size="euiSize"
          type="danger"
          v-on:click="btnDeleteClick(scope.row)">删除</el-button>
      </el-button-group>
    </template>
  </el-table-column>
   @await Html.PartialAsync("_PartialTableEmpty")
</el-table>
    <div style="text-align: center; margin-top: 10px;">
        <el-pagination v-on:current-change="handleCurrentChange" background
                       :current-page="form.pageIndex"
                       :page-size="form.pageSize"
                       layout="total, prev, pager, next, jumper"
                       :total="total">
        </el-pagination>
    </div>
</el-card>

@section Scripts{
<script src="/sitefiles/assets/js/admin/xbl/crudDemo.js" type="text/javascript"></script> }